import request from '@/utils/request'

// 查询薪资项目管理列表
export function listSalaryProjectManagement(query) {
  return request({
    url: '/compensationManagement/salaryProjectManagement/list',
    method: 'get',
    params: query
  })
}

// 查询薪资项目管理详细
export function getSalaryProjectManagement(id) {
  return request({
    url: '/compensationManagement/salaryProjectManagement/' + id,
    method: 'get'
  })
}

// 新增薪资项目管理
export function addSalaryProjectManagement(data) {
  return request({
    url: '/compensationManagement/salaryProjectManagement',
    method: 'post',
    data: data
  })
}

// 修改薪资项目管理
export function updateSalaryProjectManagement(data) {
  return request({
    url: '/compensationManagement/salaryProjectManagement',
    method: 'put',
    data: data
  })
}

// 删除薪资项目管理
export function delSalaryProjectManagement(id) {
  return request({
    url: '/compensationManagement/salaryProjectManagement/' + id,
    method: 'delete'
  })
}
